import request from '@/utils/request'

export function login(username, password, code, uuid) {
  return request({
    url: 'auth/login',
    method: 'post',
    params: {
      username,
      password,
      code,
      uuid
    }
  })
}

export function getCodeImg() {
  return request({
    url: 'auth/code',
    method: 'get'
  })
}

export function getRoutes() {
  return request({
    url: 'person/routes',
    method: 'get'
  })
}

export function getDataLimitList() {
  return request({
    url: 'person/getDataLimitList',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/auth/logout',
    method: 'delete'
  })
}
